package cn.wolfcode.wolf2w.query;

import cn.wolfcode.wolf2w.util.TravelCondition;
import lombok.Getter;
import lombok.Setter;

import java.util.concurrent.locks.Condition;

@Getter
@Setter
public class TravelQuery extends QueryObject {
    private String destId;

    private int dayType = -1;  //出行时间

    private int orderType; //排序条件（最新/最热）

    private int perExpendType=-1;   //人均消费
    public TravelCondition getDay(){
        return TravelCondition.DAY_MAP.get(dayType);
    }

    public TravelCondition getPerEx(){
        return TravelCondition.perExpendType_MAP.get(perExpendType);
    }
}
